<?php

namespace Core\Listener\Front;


use Logger;
use Zend\EventManager\Event;


class FrontModuleListener{

    public function processException(Event $e){

        $exception = $e->getParam('exception') ;
        Logger::crit($exception->getMessage());
        //do some stuff here ex:
        //do some audit for example
        /*if($exception instanceof BusinessException){
           ---your work
        }elseif($exception instanceof SystemException){
            ---your work
        }else{
            ---your work
        }*/

    }

}